package service;

import dao.UserDao;
import dao.UserDaoFactory;
import dao.UserDaoImpl;
import entity.User;

public class UserServiceImpl implements UserService {
    private UserDao userDao = UserDaoFactory.getInstance();

    public void save(User user){
        userDao.save(user);
    }
    //示例14
    private UserDao userD;

    private void saves(User user){
        userD.save(user);
    }
    public void setUserDao(UserDao userDao){
        this.userD=userDao;
    }
}
